package yunquan.wang.base.jdbc;

enum Color{
    RED(255,String.class);
    //构造枚举值，比如RED(255,0,0)
    private Color(int rv,Class javaclass){
     this.sqltype=rv;
     this.javaclass=javaclass;
    }
    public String toString(){  //覆盖了父类Enum的toString()
    return super.toString();
    }

    private int sqltype;  //自定义数据域， 
    private Class  javaclass;
 
}
